import { http } from '@/utils/http'
import type { BannerItem, CategoryItem, User } from '@/types/home'

/**
 * 首页-广告区域-小程序
 */
export const getHomeBannerAPI = () => {
  return http<BannerItem[]>({
    method: 'GET',
    url: '/system/banner/getBanner',
  })
}

/**
 * 首页-前台分类-小程序
 */
export const getHomeCategoryMutliAPI = () => {
  return http<CategoryItem[]>({
    method: 'GET',
    url: '/stock/dept/list2',
  })
}


/**
 * 随机查询医生列表信息
 */
export const getUserListRangesAPI = () => {
  return http<User[]>({
    method: 'GET',
    url: '/stock/user/getUserListRanges',
  })
}

